home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
pascal
/
ptrp10.zip
/
TEST13.TRP
< prev
next >
Wrap
Text File
|
1994-05-17
|
642b
|
21 lines
procedure main
var
blank : string = " "
myStr : string
tFile : text = "test13.txt"
i : byte;
l : byte;
endvar
write("Enter String ")
readln(myStr)
if (rewrite(tFile) = 0)
l := length(myStr)
for i := 1 to l
writeln(tFile, copy(blank, 1, l - i + 1),
copy(myStr, l - i + 1, l),
copy(myStr, 1, i))
endfor
close(tFile)
endif
endproc